//
//	MCDayMonthsYearModl.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCDayMonthsYearModl : NSObject, NSCoding, Mappable{

	var days : Int?
	var months : Int?
    var years:Int?
    var weakDay:Int?
    
	class func newInstance(map: Map) -> Mappable?{
		return MCDayMonthsYearModl()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		days <- map["days"]
		months <- map["months"]
        years <- map["years"]
		weakDay <- map["weakDay"]
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         days = aDecoder.decodeObject(forKey: "days") as? Int
         months = aDecoder.decodeObject(forKey: "months") as? Int
        years = aDecoder.decodeObject(forKey: "years") as? Int
        weakDay = aDecoder.decodeObject(forKey: "weakDay") as? Int
	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if days != nil{
			aCoder.encode(days, forKey: "days")
		}
        
		if months != nil{
			aCoder.encode(months, forKey: "months")
		}

        if years != nil {
            aCoder.encode(years,forKey: "years")
        }
        
        if weakDay != nil {
            aCoder.encode(weakDay,forKey: "weakDay")
        }
        
	}

}
